<template>
    <div class="about">
        <button @click="jump">点击跳转</button>

    </div>
</template>
<script>
    import {
        isQA,
        baseurl,
        imgcodeurl,
        guessingUrl
    } from '../config/url';
    export default {
        data() {
            return {
                
            }
        },
        // 不能使用this 因为没有实例化
        beforeRouteEnter(to, from, next) {
            console.log('enter');
            next();
        },
        beforeRouteUpdate(to, from, next) {
            console.log('Update');
            next();
        },
        // beforeRouteLeave(to, from, next) {
        //     console.log('Leave');
        //     if (global.confirm('are you sure')) {
        //         next();
        //     }
        // },
        computed: {
            // numget: function () {
            //     let nm = this.$route.params.id;
            //     console.log(nm);
            // }
        },
        methods: {
            // numget(){
            //     let nm = this.$route.params.id;
            //     console.log(nm);
            // }
            jump() {
                window.location.href = this.g_https + 'www.baidu.com';
            }
        },
        mounted() {
            
        }


    }
</script>